﻿using System.ComponentModel.DataAnnotations;
using YuYuKiCms.Framework.Localization;

namespace YuYuKiCms.Model
{
    /// <summary>
    /// This view model is use for login inside the web site
    /// </summary>
    public class LoginVm
    {
        [Required]
        [DisplayNameFromDb("Email")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [Required]
        [DisplayNameFromDb("Password")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [DisplayNameFromDb("RememberMe")]
        public bool RememberMe { get; set; }
    }
}
